#include "iostream"
using namespace std;


struct Teacher
{
	char name[64];
	int age;
};

int initTeacher(Teacher **p)
{
	
	Teacher *tmp = (Teacher *)malloc(sizeof(Teacher));
	if(tmp != NULL)
	{
		goto END;
	}

	memset(tmp,0,sizeof(Teacher));

	tmp->age = 33;

	*p = tmp;

	return 0;

END:
	return -1;
}

int main()
{
	Teacher *p = NULL;

	int ret = initTeacher(&p);
	if(ret == -1)
	{
		cout << "initTeacher() error" << endl;
		return -1;

	}
	cout << "age:" << p->age << endl;
	return 0;
}